<?
#####################################################
#  COPYRIGHT NOTICE
#####################################################
# In the following statements, the term "this 
# program" refers to all files associated with the
# execution and distribution of Adtrackz.
#
# This Program is Copyright 2004 Jonah Klimack.
# All Rights Reserved. 
#
# Selling the code for this program, modifying 
# and/or redistributing the code for this program
# in part or in whole over the Internet or in any 
# other medium is expressly forbidden. Violators
# will be prosecuted to the fullest extent of the law
# Copyright and header information may not be
# modified.
#
# This program is distributed "as is" and without 
# warranty of any kind, either express or implied.
# In no event shall the liability of Jonah Klimack 
# for any damages, losses and/or causes of 
# action exceed the total amount paid by the 
# user for this software.		
#####################################################
# DO NOT MODIFY ANYTHING IN THIS FILE
#####################################################


require "header.php";

$campaign = mysql_fetch_row(mysql_query("select * from adtrackz_campaigns where ID='$cID'"));
?>

<p class="small" align="left">
	Campaigns > Generate PPC Landing Page
	</p>
	<p class="heading">Generate Pay Per Click Landing Page</p>

<p>Some pay per click networks make you send your traffic to a landing page first, and then to your affiliate page. This tool will generate a landing page for you that will allow you to track which keywords are generating clicks to your affiliate site - from pay per click to landing page to affiliate url.</p>

<p><b>Note:</b> This feature only works with affiliate networks that support the ability to pass extra parameters through the affiliate url. For more information, see the help manual. </P>
<Br><br>



<form action=landingpage.php method=post>
  <table width=100%>
    <tr>
	  <td width="110" valign="top">Affiliate Url</td>
	<td valign="top">			
		<input type=text name=affiliate_url size=40>
	</td>
</tr>
<tr>
	<td>&nbsp;</td>
	  <td><span class=small> Enter the full affiliate url for your product but 
        leave the variable that you wish to pass empty and on the end of the url.<br>
        <br>
        For example: http://cj.com/tracker.php?affID=1234&SID= <br>
        <br>
        Where SID is the name of the parameter to be passed to cj.com. </span> 
      </td>
</tr>
</table>
<br><br>
<center>
<input type="submit" name="submit" value="Generate Landing Page Code">
</center></form><br>
</form>


<br><br>




<?

if ($submit)
{

	?>
	Create a file and end it in the .php extension. Paste this code at the very top of the page, before the opening &lt;html&gt; bracket.<br><br>
	<form action=landingpage.php>
	<center>
	<textarea name=code rows=15 cols=50>

&lt;?
extract($_REQUEST);
$url = "<?=$affiliate_url?>";
$vcampaigns = explode("|", $_COOKIE['ccampaign']);
$vcampaigns = array_reverse($vcampaigns);
list($last_campaign,$last_sub) = explode("&",$vcampaigns[0]);
$url .= $last_sub;
?&gt;

	</textarea>
	</center>
	<br><br>
	Paste this code wherever you want the actual affiliate url to be displayed. For example, in an a href tag, like this: &lt;a href="&lt;?=$url?&gt;"&gt;Click Here&lt;/a&gt;<br><br>
	<center>
	<textarea name=code rows=2 cols=50>

&lt;?=$url?&gt;

	</textarea>
	</center>
	</form>


	<br><br>
	Now send your PPC traffic to your new landing page. Make sure to use AdTrackzGold standard keyword tracking method.
	For more information, see the keyword tracking section in the help manual.
	<?
}
require "footer.php";
?>

